-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api 43135 poa updated notification dependent #19972
Api 43135 poa updated notification dependent #19972
Conversation
…ed-notification-dependent
…ed-notification-dependent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Minor feedback (id vs object in the sidekiq params).
modules/claims_api/app/sidekiq/claims_api/poa_assign_dependent_claimant_job.rb
Outdated
Show resolved
Hide resolved
modules/claims_api/app/controllers/claims_api/v2/veterans/power_of_attorney/base_controller.rb
Outdated
Show resolved
Hide resolved
modules/claims_api/app/controllers/claims_api/v2/veterans/power_of_attorney/base_controller.rb
Outdated
Show resolved
Hide resolved
modules/claims_api/app/sidekiq/claims_api/va_notify_accepted_job.rb
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -105,7 +105,7 @@ | |||
end | |||
end | |||
|
|||
context 'when the flipper is on' do | |||
context 'when the flipper is off' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…ed-notification-dependent
…ed-notification-dependent
…ed-notification-dependent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mchristiansonVA Looks like there are some tests failing that are unrelated to the work here, that said, I was able to get the email notification behavior validated for showing the claimant's name correctly. Assuming no code changes will be needed to address the failing tests this all looks good to me
@@ -4,7 +4,7 @@ module ClaimsApi | |||
class PoaAssignDependentClaimantJob < ClaimsApi::ServiceBase | |||
LOG_TAG = 'poa_assign_dependent_claimant_job' | |||
|
|||
def perform(poa_id) | |||
def perform(poa_id, rep_id) | |||
poa = ClaimsApi::PowerOfAttorney.find(poa_id) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could potentially extract some commonly used attributes into local variables here:
poa_id = poa.id
form_data = poa.form_data
auth_headers = poa.auth_headers
Summary
Related issue(s)
API-43135
Testing done
switching the job to use new.perform is not strictly required, but wll make it easier to step through and see.
you will need to switch out so the template sends to your email: email_address: 'you.email@here' replaces recipient_identifier: icn_for_vanotify(poa.auth_headers), for whichever you are sending
Change line 100 in the power_of_attorney/base_controller to use new.perform
Change lines 35 & 37 in the v2 PoaFormBuilderJob to use new.perform
Change line 33 in poa_assign_dependent_claimant_job.rb to use new.perform
Submit a v2 2122 or 2122a with a dependent claimant; email will be sent upon successful assignation of POA for individual or organization. The titles are: ORG: We processed your form to appoint a VSO & Rep: We processed your form to appoint an accredited representative
Confirm the resulting email includes the dependent claimant's first name in the salutation.
Screenshots
Individual/rep email
Organization email
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas)
Acceptance criteria